# -*- coding: utf-8 -*-
"""
	@author:sirius
	@time:2017.10.19
"""
def write_file(str_of_content, file_name):
	'''写入文件'''
	f = open(file_name, 'w')
	try :
		f.write(str_of_content)
	except exception:
		print '用户“邻居”文件写入失败!'
	finally :
		f.close()
		print 'Neighbors-Finished...'


